﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RolePlayingGame
{
    public abstract class ItemBase : MapObject, ICollidable
    {
        public ItemBase(Coord startLocation, char symbol, int level)
            : base(startLocation, symbol)
        {
            this.level = level;
            this.UpgardeStrenght = level * 25;
        }

        private int level;
        public int UpgardeStrenght { get; private set; }

        public int Level
        {
            get { return this.level; }
            set 
            {
                this.level = value;
                this.UpgardeStrenght = value * 25;                
            }
        }

        public void CollideWith(MapObject other)
        {
            this.Disapear();
        }

        
    }
}
